﻿Public Class frmMain

    Private Sub cmdTimeIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdTimeIn.Click
        Me.Hide()
        frmTimeIn.Show()
    End Sub

    Private Sub cmdTimeOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdTimeOut.Click
        Me.Hide()
        frmTimeOut.Show()
    End Sub

    Private Sub cmdViewAttendance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdViewAttendance.Click
        Me.Hide()
        frmViewAttendanceSheet.Show()
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdEditEmployee.Click
        Me.Hide()
        frmEditEmployee.Show()
    End Sub

    Private Sub cmdCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCreate.Click
        Me.Hide()
        frmCreateEmployee.Show()
    End Sub

    Private Sub cmdViewRecord_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdViewRecord.Click
        Me.Hide()
        frmViewEmployee.Show()
    End Sub

    Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExit.Click
        Me.Close()
    End Sub

    Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Select()
    End Sub

    Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        lblSelect.Text = "Juan Dela Cruz"
        cmdTimeIn.Enabled = True
        cmdTimeOut.Enabled = True
        cmdViewAttendance.Enabled = True
        cmdEditEmployee.Enabled = True
        cmdViewRecord.Enabled = True
    End Sub
End Class
